package com.kapo.egroup.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kapo.egroup.entity.base.lesson.LessonTask;
import com.kapo.egroup.entity.base.project.UserInviteRecord;
import com.kapo.egroup.mapper.LessonTaskMapper;
import com.kapo.egroup.mapper.UserInviteRecordMapper;
import com.kapo.egroup.service.InviteService;
import com.kapo.egroup.service.LessonTaskService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title LessonTaskServiceImpl
 * @Description TODO
 * @Author 86159
 * @Date 2023-04-01 20:47
 **/
@Service
public class LessonTaskServiceImpl  extends ServiceImpl<LessonTaskMapper, LessonTask> implements LessonTaskService {
    @Override
    public List<LessonTask> getLessonTaskByLessonId(Long lessonId) {
        QueryWrapper<LessonTask> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("lesson_id",lessonId);
        return baseMapper.selectList(queryWrapper);
    }
}
